<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>打印合格证</title>
    <meta name="keywords" content="打印合格证">
    <meta name="description" content="打印合格证">

    <script language="javascript" src="jquery-1.8.3.min.js"></script>
    <script language="javascript" src="WarnPrint.js"></script>
    <script language="javascript" src="template.js"></script>
    <script language="javascript">


        function showAndroid(str) {
            <!--alert(str);-->
            var data = JSON.parse(str);
            var head = data.headDetail;
            <!--alert(head)-->
            document.getElementById("fhdh").innerText=head.FBillNo
            document.getElementById("shdw").innerText=head.FBiller
            document.getElementById("shdz").innerText="罚款老实交代覅我付款了六块腹肌阿斯of金坷垃圣诞节覅欧文福利卡世纪东方谁离开多久发斯蒂芬"
            document.getElementById("lxdh").innerText=head.FAddress

            var tbody = document.getElementById('tbMain');
            for(var i=0;i<data.bodyList.length;i++){
            var span = document.createElement('span'); //1、创建元素
            span.innerHTML="lijia ";
            var container = document.getElementById('by'); //2、找到父级元素
            container.appendChild(span); //3、在末尾中添加元素


            }




        }
function getDataRow(){
     var row = document.createElement('tr'); //创建行

     var idCell = document.createElement('td'); //创建第一列id
     idCell.innerHTML = "asd"; //填充数据
     row.appendChild(idCell); //加入行  ，下面类似

     var nameCell = document.createElement('td');//创建第二列name
     nameCell.innerHTML = "fasdfas";
     row.appendChild(nameCell);

     return row; //返回tr数据
     }

    </script>
</head>

<body id="by" onload="load()">

<style type="text/css">
.tg  {border-collapse:collapse;border-spacing:0;}
.tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;}
.tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;}
.tg .tg-nrw1{font-size:10px;text-align:center;vertical-align:top}
.tg .tg-baqh{text-align:center;vertical-align:top}
.tg .tg-yw4l{vertical-align:top}

</style>

<table class="tg" style="undefined;table-layout: fixed; width: 282px">
    <colgroup>
        <col style="width: 81px">
        <col style="width: 201px">
    </colgroup>
    <tr>
        <th class="tg-baqh">发货单号</th>
        <th id="fhdh" class="tg-yw4l"></th>
    </tr>
    <tr>
        <td class="tg-nrw1">收货单位</td>
        <td id="shdw" class="tg-baqh"></td>
    </tr>
    <tr>
        <td class="tg-nrw1">收货地址</td>
        <td id="shdz" class="tg-baqh"></td>
    </tr>
    <tr>
        <td class="tg-baqh">联系人</td>
        <td id="lxr" class="tg-yw4l"></td>
    </tr>
    <tr>
        <td class="tg-baqh">联系电话</td>
        <td id="lxdh" class="tg-yw4l"></td>
    </tr>
    <tr>
        <td class="tg-baqh">手机号</td>
        <td id="sjh" class="tg-yw4l"></td>
    </tr>
    <tr>
        <td class="tg-baqh">日期</td>
        <td id="rq" class="tg-yw4l"></td>
    </tr>
    <tr>
        <td class="tg-baqh">发货单位</td>
        <td id="fhdw" class="tg-yw4l"></td>
    </tr>

    <tr>
        <td class="tg-baqh">备注</td>
        <td class="tg-yw4l"></td>
    </tr>
</table>
<div id="title">产品清单</div>

</body>
</html>